#include <iostream>

using namespace std;


class Student
{
public:
    Student()
    {
        cout<<"子类无参构造"<<endl;

    }
    ~Student()
    {
        cout<<"子类析构函数 "<<endl;
    }

    void printInfo()
    {
        cout<<"m_no"<<this->m_no<<endl;
        
    }

public:
    int m_no;
    /* 静态全局变量*/
    static int m_room;
};

int Student::m_room = 1;

int main()
{
    Student stu;
    stu.m_room = 254;

    // Student::m_no = 999;
    Student::m_room = 257;

    Student * pstu = new Student();
    pstu->m_room = 888;
    return 0;
}